package com.peanut.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className: com.peanut.mvc.congif.controller-> MyController
 * @description: 这个类是做做什么得吖，小朋友？
 * @author: chenhs
 * @createDate: 2021-09-19 9:25
 * @version: 1.0
 */
@Controller
public class MyController {
    /**
     * @description 返回主页
     * @author cehnhs
     * @updateTime 2021/9/19 9:28
     */
    @RequestMapping(value = "/")
    public String name() {
        System.out.println("进入------controller");
        return "index";
    }

    @RequestMapping(value = "testException")
    public String testException() {
        String a = null;
        a.toString();
        return "index";
    }


//    @RequestMapping(value = "/pageSkipe")
//    public String pageSkipe() {
//        System.out.println("-------页面拦截-------------");
//        return "index";
//    }

}
